<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{
            margin:0;padding:0;
        }
        .nav{
            line-height: 50px;
            background: deeppink;
            fone-size:0;
            height:50px;


        }
        .nav a{
            color:#fff;
            text-decoration: none;
            display: inline-block;
            font-size: 14px;
            width: 100px;
            text-align:center;

        }
        a:hover{
            background-color:pink;
        }
    </style>
</head>
<body>
    <div class="nav">
    <a href="#">手机</a>
    <a href="#">平板</a>
    <a href="#">电脑</a>
    </div>
</body>
</html>